<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="person!save" theme="simple">
	<s:hidden name="person.id"/>
	<s:hidden name="paging.currentPage"/>
	
	<table border="0" style="padding:10px;width:100%;">
		<tr class="edittable" style="color:red;font-weight:bold;">
			<td width="100px"><s:label label="" value="姓名(必填)" /></td>
			<td><s:textfield name="person.name" size="100"/></td>
		</tr>

		<tr>
			<td colspan="2"><span style="font-weight:bold;">以下全部可选</span></td>
		</tr>
		<tr>
			<td width="100px"><s:label value="电影" /></td>
			<td>
				<s:iterator value="person.mprs" status="stat">
					<li><s:a href="movie!edit?movie.id=%{movie.id}">
						 <s:property value="role.nameCn" /> - <s:property value="movie.displayName" />
					</s:a></li>
				</s:iterator>
			</td>
		</tr>
		<tr>
			<td><s:label value="奖项" /></td>
			<td>
				<s:iterator value="person.mpacs" status="stat">
					<li><s:a href="movie!edit?movie.id=%{movie.id}">
						<s:property value="award.displayName" /> (<s:property value="typeName" />) - <s:property value="movie.displayName" />
					</s:a></li>
				</s:iterator>
			</td>
		</tr>
		
		<tr>
			<td><s:label label="" value="中文名" /></td>
			<td><s:textfield name="person.nameCn" /></td>
		</tr>
		<tr>
			<td><s:label value="Douban ID" /></td>
			<td><s:textfield name="person.doubanId" /></td>
		</tr>
		
		<tr>
			<td><s:label value="Mtime ID" /></td>
			<td><s:textfield name="person.mtimeId" /></td>
		</tr>
		<tr>
			<td><s:label label="" value="别名" /></td>
			<td><s:textfield  name="person.alias" /></td>
		</tr>
		<tr>
			<td><s:label label="" value="性别" /></td>
			<td>男、女</td>
		</tr>
		<tr>
			<td><s:label label="" value="生卒年月" /></td>
			<td><s:textfield name="person.startDate" /> - <s:textfield name="person.endDate" /></td>
		</tr>
		<tr>
			<td><s:label label="" value="角色" /></td>
			<td>演员、导演</td>
		</tr>

		<tr>
			<td><s:label label="" value="头像" /></td>
			<td><img id="image" src="<s:property value="person.image.src"/>" class="thumb" />
			<s:a href="javascript:showDialog('image!select','image','image')">选择</s:a>
			<s:hidden id="imageData" name="person.image.id" /></td>
		</tr>
		<tr>
			<td><s:label label="" value="写真" /></td>
			<td><div id="images"><s:iterator value="person.images" status="stat">
				<img src="<s:property value="src"/>" class="thumb" />
			</s:iterator>
			</div><s:a href="javascript:showDialog('image!select','images','images')">选择</s:a>
			<s:hidden id="imagesData" name="imagesData" />
			</td>
		</tr>
		
		<tr>
			<td><s:label label="" value="简介" /></td>
			<td><s:textarea name="person.profile" cols="60" rows="5"></s:textarea></td>
		</tr>

	</table>
</s:form>